#define  _CRT_SECURE_NO_WARNINGS 1
#include"add.h"

void seqliseInit(sl* s2)
{
	s2->arr = NULL;
	/*s2->size = 0;
	s2->capacity = 0;*/
	s2->capacity = s2->size = 0;
}
void SlCheck(sl* s2)
{
	if (s2->size == s2->capacity)
	{
		Sldatetype newcapacity = (s2->capacity == 0) ? 4 : 2 * s2->capacity;
		Sldatetype* pf = (Sldatetype*)relloc(s2->arr, newcapacity * sizeof(Sldatetype));
		if (pf == NULL)
		{
			perror("relloc");
			exit(1);
		}
		s2->arr = pf;
		s2->capacity = newcapacity;
}
//尾插
void slPushBack(sl * s2, Sldatetype n)
{
	void SlCheck(sl * s2);
     s2->arr[s2->size++] = n;
	//s2->size++;
}
//尾删
void sldDesBack(sl* s2)
{
	s2->size--;
}
//头插
void slPushFront(sl* s2,Sldatetype n)
{
	void SlCheck(sl * s2);
	for (int i = size; i < ; i)
	{
		arr
	}

}

